<template>
    <lightning-card title="测试lwc:if属性嵌套">
        <div>
            DOM状态不一致，导致：Uncaught (in promise) TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
        </div>
        <div style="text-align: center; margin: 20px 0px;">
            <lightning-button onclick={loadData} variant="brand" label="刷新"></lightning-button>
        </div>

        <c-test-lwc-if
            records={records}
            columns={columns}
            freeze-columns={freezeColumns}
        ></c-test-lwc-if>
    </lightning-card>
</template>